package com.yonyou.openapi.base.sso.pojo;

import lombok.Data;

/**
 * @description: 第三方用户同用友用户关联实体
 * @author: nishch
 * @create: 2021-07-07
 **/
@Data
public class ThirdUserBo {

    private String thirdUcId;  //集成认证应用编码
    private String userId;   //第三方用户id
    private String mobile;  //第三方手机号
    private String email;   //第三方邮箱
    private String userName;  //第三方用户名
    private String userCode;  //第三方用户编码
    //单点到指定节点需要用到------------------------
    private String tenantId;   //要登录的租户id
    private String serviceCode;  //单点节点的serviceCode
    private String targetUrl; //目标地址，mUrl或者webUrl


    public ThirdUserBo() {

    }

    public ThirdUserBo(String thirdUcId, String userId) {
        this.thirdUcId = thirdUcId;
        this.userId = userId;
    }

    public ThirdUserBo(String thirdUcId, String userId, String userName, String userCode) {
        this.thirdUcId = thirdUcId;
        this.userId = userId;
        this.userName = userName;
        this.userCode = userCode;
    }

    public ThirdUserBo(String thirdUcId, String userId, String userName, String userCode, String mobile, String email) {
        this.thirdUcId = thirdUcId;
        this.userId = userId;
        this.mobile = mobile;
        this.email = email;
        this.userName = userName;
        this.userCode = userCode;
    }


    public ThirdUserBo(String thirdUcId, String userId, String userName, String userCode, String serviceCode, String mobile, String email) {
        this.thirdUcId = thirdUcId;
        this.userId = userId;
        this.mobile = mobile;
        this.email = email;
        this.userName = userName;
        this.userCode = userCode;
        this.serviceCode = serviceCode;
    }

}
